$(function () {
    var data = {
      "Result": 1,
      "model": {
        "avatar": "/UploadFile/UserAvator/o8EpVv4SARdmScNACQRetwRAqh3Y.jpg",
        "nickname": "职场小白 🌜再平凡、我也是限量版🌛",
        "position": "right",
        "pmax": null,
        "pmaxname": "苏巴希奇",
        "pmaximg": "end-avatar-sbxq.png",
        "pmaxdesc": "带着挚友梦hold住球门的",
        "pone": null,
        "ponedesc": "对胜利和发型都充满自信的",
        "ponename": "内马尔",
        "poneimg": "end-avatar-nme.png",
        "ptwo": null,
        "ptwoimg": "end-avatar-stl.png",
        "ptwoname": "贝兰万德",
        "ptwodesc": "坚持成功永远没有终点的",
        "desc": "友谊",
        "sjximg": "end-result1.png"
      }
    }
    // $(".end-avatar").attr("src", data.model.avatar);
    $(".end-avatar-text").html(data.model.nickname);
    $(".end-result").attr("src", "img/" + data.model.sjximg);
    var position = data.model.position;
    // $(".bottom_img").attr("src", "/html/img/" + data.model.ptwoimg);
    $(".bottom_desc").text(data.model.ptwodesc);
    $(".bottom_name").text(data.model.ptwoname);
    $(".zzz").text(data.model.desc);
    endInit();
})


//根据QueryString参数名称获取值
function getQueryStringByName(name) {
    var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
    if (result == null || result.length < 1) {
        return "";
    }
    return result[1];
}
